<?php

namespace app\api\model;

use think\Model;

class Notification extends Model
{
    protected $hidden = ["createtime", "updatetime"];
    /**
     * 最新的一条通知
     */
    public static function getByLastTime()
    {
        return self::order("createtime desc")->find();
    }
}
